<?php /* Smarty version Smarty-3.1.18, created on 2015-05-14 02:15:57
         compiled from "..\application\views\home\message-list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:311425554055dedf487-19470136%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1432e9b5d12e7a40e9d2fc907ba24c5ab187dc28' => 
    array (
      0 => '..\\application\\views\\home\\message-list.tpl',
      1 => 1431510851,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '311425554055dedf487-19470136',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'block' => 0,
    'data' => 0,
    'message' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5554055e418f32_85936743',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5554055e418f32_85936743')) {function content_5554055e418f32_85936743($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('home/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div id="main">
	<div class="container">
	<?php if (!empty($_smarty_tpl->tpl_vars['block']->value)) {?>
		<?php echo $_smarty_tpl->getSubTemplate ('home/sidebar-training.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<?php } else { ?>
		<?php $_smarty_tpl->tpl_vars["block"] = new Smarty_variable('', null, 0);?>
		<?php echo $_smarty_tpl->getSubTemplate ('home/sidebar-training.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<?php }?>
		<div class="main-right">
			<div class="main-title">
				<h1><?php echo h($_smarty_tpl->tpl_vars['data']->value[0]['CateName']);?>
</h1>
				<?php echo $_smarty_tpl->getSubTemplate ('home/crumbs.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			</div>
			<div class="main-content">
				<div class="article-body" style="margin-top:0;">
					<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['message']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
					<?php if ($_smarty_tpl->tpl_vars['v']->value['state']!=0) {?>
					<div class="message">
						<img src="<?php echo base_url();?>
/Public/img/photo.png" class="photo">
						<div class="message-container">
							<p>
								<span><?php if ($_smarty_tpl->tpl_vars['v']->value['aid']==0) {?>机械电子工程学院<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
<?php }?>&nbsp;&nbsp;&nbsp;|</span>
								<span>&nbsp;&nbsp;&nbsp;<?php echo date('Y-m-d',$_smarty_tpl->tpl_vars['v']->value['time']);?>
</span>
								<a href="<?php echo site_url("home/moreReplyPage?id=".((string)$_smarty_tpl->tpl_vars['v']->value['id']));?>
">&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;回复[<?php echo $_smarty_tpl->tpl_vars['v']->value['replySum'];?>
]</a>
							</p>
							<p class="message-content"><?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>
</p>
						</div>
					</div>
					<?php }?>
					<?php } ?>
					<form action="<?php echo site_url('home/message');?>
" method="post" class="message-reply">
						<p>
							<span style="margin-right:10px;">留言</span>
							<a href="<?php echo site_url("home/Judge?Id=108");?>
">登录</a>
							<a href="<?php echo site_url("home/Judge?Id=107");?>
">注册</a>
							<span class="message-note">注：您的留言将在审核后显示</span>
						</p>
						<textarea name="message_content"></textarea>
						<input type="submit" value="提交" class="submit" />
					</form>
				</div>
				<div class="page-footer">
				</div>
			</div>
		</div>
	</div>
</div>
<?php echo $_smarty_tpl->getSubTemplate ('home/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php }} ?>
